package com.sy.convert.consume;

import com.sy.convert.beans.Order;

import java.util.Map;

public class MessageDelegate {
    //普通字符串转换
    public void handleMessage1(Map messageBody){
        System.out.println("默认方法2:"+messageBody.toString());
    }
    //json方式转换
    public void handleMessage2(String messageBody){
        System.out.println("默认方法1:"+new String(messageBody));
    }

    //json方式转换
    public void handleMessage3(Order messageBody){
        System.out.println("默认方法1:"+messageBody.toString());
    }
    //json方式转换
    public void handleMessage3(Package messageBody){
        System.out.println("默认方法1:"+messageBody.toString());
    }
}
